package butang.jvm.strack;

import org.junit.Test;
import sun.java2d.pipe.SpanIterator;

import java.util.SplittableRandom;

/**
 * ClassName: demo1
 * Package: butang.jvm.strack
 * Description:
 *
 * @Author BuTang
 * @Create 2024/1/24 10:27
 * @Version 1.0
 */
public class Demo1 {
    public static void main(String[] args) {
        String a = "1";
        String b = "2";
        String c = "12";
        String d = a + b ;
        System.out.println(c == d );
    }
    @Test
    public void test1(){
        String s1=new StringBuilder().append("think").append("123").toString();
        System.out.println(s1.intern()==s1);
        String s2=new StringBuilder().append("ja").append("va").toString();
        System.out.println(s2.intern()==s2);
    }

    @Test
    public void test2(){
        int i =1 ;
        i = i ++ ;
        System.out.println(i);
    }


}
